#
# Be sure to run `pod lib lint DGGSharePayKit.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'DGGSharePayKit'
  s.version          = '1.0.1'
  s.summary          = '更新qq SDK'

# This description is used to generate tags and improve search results.
#   * Think: What does it do? Why did you write it? What is the focus?
#   * Try to keep it short, snappy and to the point.
#   * Write the description between the DESC delimiters below.
#   * Finally, don't worry about the indent, CocoaPods strips it!

  s.description      = <<-DESC
TODO: Add long description of the pod here.
                       DESC

  s.homepage         = 'https://gitee.com/wumingpeng/DGGSharePayKit'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { '伍明鹏' => '505490956@qq.com' }
  s.source           = { :git => 'https://gitee.com/wumingpeng/DGGSharePayKit.git', :tag => s.version.to_s }
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

  s.ios.deployment_target = '9.0'
  s.static_framework = true
  
  # 工程pch文件
  s.prefix_header_file = 'DGGSharePayKit/Classes/PCH/DGGSharePayKitPrefixHeader.pch'

  s.source_files = ['DGGSharePayKit/Classes/**/*']
  
  #工程资源文件
  s.resource_bundles = {
    'DGGSharePaySDKBundle' => ['Resources/**/*.{mp3,png,storyboard,xib,xcdatamodeld,html,js,cer}']
  }
  
  s.subspec 'AlipaySDK' do |ap|
    ap.source_files  = 'DGGSharePayKit/Classes/AlipaySDK/*.{h,m}'
    ap.resources = 'DGGSharePayKit/Assets/AlipaySDK/*.{png,xib,bundle}'
    ap.ios.vendored_frameworks = 'Vendor_frameworks/AFAuthSDK/*.framework'
  end
  
  s.subspec 'WeChatSDK' do |wc|
    wc.source_files  = 'DGGSharePayKit/Classes/WeChatSDK/*.{h,m}'
    wc.resources = 'DGGSharePayKit/Assets/WeChatSDK/*.{png,xib}'
    wc.dependency 'WechatOpenSDK', '1.8.6.2'
    wc.dependency 'UMCCommon','2.1.1'
    wc.dependency 'UMCShare/UI', '6.8.2'
    wc.dependency 'UMCSecurityPlugins', '1.0.6'
    wc.dependency 'UMCAnalytics', '5.5.2'
  end

  s.subspec 'WorkWeChatSDK' do |ww|
    ww.source_files  = ['DGGSharePayKit/Classes/WorkWeChatSDK/*.{h,m}','DGGSharePayKit/Classes/WorkWeChat/*.{h}']
    ww.resources = 'DGGSharePayKit/Assets/WorkWeChatSDK/*.{png,xib}'
    ww.vendored_libraries = 'Vendor_frameworks/WorkWeChat/*.{a}'
  end
  
  s.subspec 'BaiduMobStatCodeless' do |bc|
    bc.dependency 'BaiduMobStatCodeless', '5.2.0'
  end
  
  s.subspec 'QQShareSDK' do |qq|
    qq.source_files  = 'DGGSharePayKit/Classes/QQShareSDK/*.{h,m}'
    qq.resources = 'DGGSharePayKit/Assets/QQShareSDK/*.{png,bundle}'
    qq.ios.vendored_frameworks = 'Vendor_frameworks/QQShareSDK/*.framework'
  end
  
  s.subspec 'ICBCPaySDK' do |icbc|
    icbc.dependency 'Toast'
    icbc.dependency 'AFNetworking'
    icbc.resources = 'DGGSharePayKit/Assets/ICBCPaySDK/*.{png,xib,bundle}'
    icbc.vendored_frameworks = 'Vendor_frameworks/ICBCPaySDK/*.framework'
  end
  
  s.frameworks = 'UIKit', 'Systemconfiguration', 'CoreTelephony', 'Foundation', 'QuartzCore','CoreText', 'CoreGraphics', 'CFNetwork','CoreMotion','Security'
#  'libiconv','libsqlite3','libstdc++','libz'
  s.libraries = 'c++', 'z'
  
  s.dependency 'UMCCommon','2.1.1'
  s.dependency 'UMCShare/UI', '6.8.2'
  s.dependency 'UMCSecurityPlugins', '1.0.6'
  s.dependency 'UMCAnalytics', '5.5.2'
  
  # s.resource_bundles = {
  #   'DGGSharePayKit' => ['DGGSharePayKit/Assets/*.png']
  # }

  # s.public_header_files = 'Pod/Classes/**/*.h'
  # s.frameworks = 'UIKit', 'MapKit'
  # s.dependency 'AFNetworking', '~> 2.3'
end
